<?php

/**
 * @copyright   FOSP
 * @version     20120426
 * @todo        Display logo team
 * @name        Zend_View_Helper_DisplayLogoTeam
 * @author      QuangTM 
 */
class Zend_View_Helper_DisplayLogoTeam extends Zend_View_Helper_Abstract
{
    
    private $_view;
    public function setView(Zend_View_Interface $view)
	{
		$this->_view = $view;
	}
    
    public function displayLogoTeam($teamID, $size = '50x50')
    {
        // Get team model
        $teamModel = TeamSeason::getInstance();
        
        // Get team detail
        $teamDetail = $teamModel->getDetailTeam($teamID);
        
        return $this->_view->Imageurl($teamDetail['logo'],$size);
    }
}